import base64

import requests

check_img = 'cat.0.jpg'
url = "http://192.168.1.59:8081/v2/models/tensorflow_model/infer"

with open(check_img, 'rb') as f:
    inputs = [{"data": base64.b64encode(f.read()).decode()}]

res = requests.post(url, json={"inputs": inputs}).text
print(res)
